/**
 * Framework for batch testing user profile models
 * Final project by Sergey Nepomnyachiy and Julia Polchin
 * Supervisor: Tsvi Kuflik
 *
 */
package core.generators.nested;

import java.util.Collection;
import java.util.Vector;

/**
 * @author Sergey and Julia
 *
 */
public class NestedHelper {
	public static Collection<?> tryUnwrap(Collection<?> col) {
		if (col.size() == 1 && col.iterator().next() instanceof Vector) { //the corner case of a vector with 1 element:
			return (Collection<?>) col.iterator().next();
		}
		return col;
	}
}
